/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

// 目前没有使用上
const sysManageRouter = {
  path: '/sys_manage',
  component: Layout,
  redirect: 'noRedirect',
  name: 'sysManage',
  meta: {
    title: '系统管理',
    icon: 'table'
  },

  children: [
    {
      path: 'index',
      component: () => import('@/views/user/index'),
      name: 'User',
      meta: { title: '用户模块', icon: 'user' }
    },
    {
      path: 'role_manage',
      component: () => import('@/views/table/dynamic-table/index'),
      name: 'roleManage',
      meta: { title: '角色管理', icon: 'role' }
    },
    {
      path: 'menu_manage',
      component: () => import('@/views/table/dynamic-table/index'),
      name: 'menuManage',
      meta: {title: '菜单管理', icon: 'menu'}
    },
    {
      path: 'department_manage',
      component: () => import('@/views/table/dynamic-table/index'),
      name: 'departmentManage',
      meta: { title: '部门管理', icon: 'menu' }
    },
    {
      path: 'post_manage',
      component: () => import('@/views/table/dynamic-table/index'),
      name: 'postManage',
      meta: { title: '岗位管理', icon: 'post' }
    },
    {
      path: 'dict_manage',
      component: () => import('@/views/table/dynamic-table/index'),
      name: 'dictManage',
      meta: { title: '字典管理', icon: 'dict' }
    },
    {
      path: 'param_set',
      component: () => import('@/views/table/dynamic-table/index'),
      name: 'paramSet',
      meta: { title: '参数设置', icon: 'param' }
    },
    {
      path: 'notice',
      component: () => import('@/views/table/dynamic-table/index'),
      name: 'notice',
      meta: { title: '通知公告', icon: 'notice' }
    },
    {
      path: 'log_manage',
      component: () => import('@/views/table/dynamic-table/index'),
      redirect: 'noRedirect',
      name: 'logManage',
      meta: { title: '日志管理', icon: 'log' },
      children: [
        {
          path: 'login_log',
          component: () => import('@/views/table/dynamic-table/index'),
          name: 'loginLog',
          meta: { title: '登录日志', icon: 'login' }
        },
        {
          path: 'operate_log',
          component: () => import('@/views/table/dynamic-table/index'),
          name: 'operateLog',
          meta: { title: '操作日志', icon: 'operate' }
        }
      ]
    }
    // 用户管理
    // 角色管理
    // 菜单管理
    // 部门管理
    // 岗位管理
    // 字典管理
    // 参数设置
    // 通知公告
    // 日志管理
    // * 登录日志
    // * 操作日志
  ]
}
export default sysManageRouter
